package com.monitor.service;

import com.baomidou.mybatisplus.service.IService;
import com.monitor.entity.ErpCustomer;
import com.monitor.util.Result;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 客户表 服务类
 * </p>
 *
 * @author LX
 * @since 2018-09-05
 */
public interface ErpCustomerService extends IService<ErpCustomer> {

    Integer selectVehicletotalCount(Integer cusCode);

    Map<String, BigDecimal> getCustomerCarNum(Integer cusCode);

    Map<String,Object> getCustomerCarNumByType(Integer cusCode,String type);

    List<ErpCustomer> selectCoutomerByType(Integer cusCode, String type);

    String selectCustType(ErpCustomer erpCustomer);

    String getcustOfMe(Integer custId);//获取所有与当前登陆客户有关的客户id

    Integer updateLogo(String logo,Integer id); //修改logo

    public Result<List<ErpCustomer>> selectByCusNameLike(String word);
}
